
import React, { Component } from 'react'
import qs from "query-string";


export default class Detail extends Component {

  constructor(props){
    super(props);
    
    console.log("Search传参：this.props",this.props);

    this.state = {
      newsid:qs.parse(this.props.location.search).newsid
    }
    
  }

  render() {

    return (
      <div>
        <h1>新闻详情</h1>
        <div>{this.state.newsid}</div>
      </div>
    )
  }
}
